import java.util.Scanner;

public class Test19091801 {

	public static void main1(String[] args) {
		double height = 0.08;
		int count = 0;
		while (height < 8844000) {
			height = height * 2;
			count++;
		}

		System.out.println(count);
	}

	public static void main2(String[] args) {
		long fact = 1;
		for (int i = 1; i <= 20; i++) {
			fact *= i;
		}

		System.out.println(fact);
	}

	public static void main3(String[] args) {
		long sum = 0;
		long fact = 1;
		for (int i = 1; i <= 20; i++) {
			fact *= i;
			sum += fact;
		}

		System.out.println(sum);
	}

	public static void main4(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a, b, c, t;
		a = scanner.nextInt();
		b = scanner.nextInt();
		c = scanner.nextInt();

		if (a > b) {
			t = a;
			a = b;
			b = t;
		}
		if (a > c) {
			t = a;
			a = c;
			c = t;
		}
		if (b > c) {
			t = b;
			b = c;
			c = t;
		}

		System.out.println(a + " " + b + " " + c);
	}

	public static void main5(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String str = scanner.nextLine();
//		char c = str.charAt(0);
//		if (c >= 'a' && c <= 'z') {
//			c -= 32;
//		}
//		System.out.println(c);
		System.out.println(str.toUpperCase());
	}

	public static void main6(String[] args) {
		for (int i = 200; i <= 500; i++) {
			boolean tag = true;

			for (int j = 2; j <= i / 2; j++) {
				if (i % j == 0) {
					tag = false;
					break;
				}
			}

			if (tag) {
				System.out.println(i);
			}
		}
	}

	public static void main7(String[] args) {
		for (int a = 0; a <= 100 / 5; a++) {
			for (int b = 0; b <= 100 / 3; b++) {
				int c = 100 - a - b;
				if (c % 3 != 0) {
					continue;
				}

				if (a * 5 + b * 3 + c / 3 != 100) {
					continue;
				}

				System.out.println(a + " " + b + " " + c);
			}
		}
	}
	
	public static void main(String[] args) {
		for(int i=100;i<=999;i++) {
			int a = i%10;
			int b = (i/10)%10;
			int c = i/100;
			
			if(a*a*a+b*b*b+c*c*c==i) {
				System.out.println(i);
			}
		}
	}
}
